/**
 * Copyright(C) 2012 Luvina Software Company
 *
 * TblUserLogic.java, 28/12/2012, NgocAnh
 */
package net.luvina.manageuser.logic;

import java.util.List;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import net.luvina.manageuser.dto.UserDetailDto;

/**
 * interface logic of TblUser
 *
 * @author la-pm Ngoc Anh
 *
 */

public interface TblUserLogic {
    /**
     * get list user in DB
     *
     * @param offset
     * @param limit
     * @param groupId
     * @param fullName
     * @param sortType
     * @param sortByFullName
     * @param sortByCodeLevel
     * @param sortByEndDate
     * @return List<UserDetailDto>
     */
    public List<UserDetailDto> getListUser(int offset, int limit, int groupId,
            String fullName, String sortType, String sortByFullName,
            String sortByCodeLevel, String sortByEndDate);

    /**
     * get total records
     *
     * @param groupId
     * @param fullName
     * @return
     */
    public int  getTotalRecords(int groupId, String fullName);
}
